<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
	        + request.getServerName() + ":" + request.getServerPort()
	        + path + "/";
	pageContext.setAttribute("baseUrl", basePath);
%>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
	<script type="text/javascript">
		var downloadUrl = '<s:property value="#attr.baseUrl"/><s:property value="application.downloadUrl"/>';
		if (downloadUrl == "") {
			alert("文件不存在");
		} else {
			window.location.href = downloadUrl;
		}
	</script>
</body>
</html>